package BLL;

import DAL.ClassDAL;
import Entities.TblClass;
import java.util.List;

public class ClassBLL {

    public ClassDAL dalObj;

    public boolean add(TblClass obj) {
        dalObj = new ClassDAL();
        return dalObj.add(obj);
    }

    public boolean update(TblClass obj){
        dalObj = new ClassDAL();
        return dalObj.update(obj);
    }

    public boolean delete(TblClass obj){
        dalObj = new ClassDAL();
        return dalObj.delete(obj);
    }

    public TblClass getById(int id)  {
        dalObj = new ClassDAL();
        return dalObj.getById(id);
    }

    public List<TblClass> getAll() {
        dalObj = new ClassDAL();
        return dalObj.getAll();
    }

    public List<TblClass> getAllByBranchId(int branchId) {
        dalObj = new ClassDAL();
        return dalObj.getAllByBranchId(branchId);
    }


    public List<TblClass> getClassBySemesterId(int semesterId) {
        dalObj = new ClassDAL();
        return dalObj.getBySemesterId(semesterId);
    }

}
